package org.jivesoftware.smack.filter;

import org.jivesoftware.smack.packet.Packet;

public class NotFilter
  implements PacketFilter
{
  private PacketFilter filter;

  public NotFilter(PacketFilter paramPacketFilter)
  {
    if (paramPacketFilter == null)
      throw new IllegalArgumentException("Parameter cannot be null.");
    this.filter = paramPacketFilter;
  }

  public boolean accept(Packet paramPacket)
  {
    int i;
    if (this.filter.accept(paramPacket))
      i = 0;
    while (true)
    {
      return i;
      i = 1;
    }
  }
}